package com.lg.utils.hutool.captcha;

import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.CircleCaptcha;
import cn.hutool.captcha.ShearCaptcha;

public class CaptchaTest {
    public static void main(String[] args) {
        CircleCaptcha circleCaptcha = CaptchaUtil.createCircleCaptcha(500, 200);
        circleCaptcha.write("C:/Users/imlg/Desktop/2.png");
        System.out.println(circleCaptcha.getCode());


        ShearCaptcha shearCaptcha = CaptchaUtil.createShearCaptcha(600, 200);
        shearCaptcha.write("C:/Users/imlg/Desktop/3.png");
        System.out.println(shearCaptcha.getCode());
    }
}
